3b1d377c3a7a6885181e780174e2f5910820f373,xwiki-platform-web/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/plugin/macro/MacroDisplayer.java,MacroDisplayer,display,#Node#,132

Before Change


        Node stop = start.getNextSibling();
        int siblingCount = 0;
        while (stop != null
            && (stop.getNodeType() != DOMUtils.COMMENT_NODE || !"stopmacro".equals(stop.getNodeValue()))) {
            stop = stop.getNextSibling();
            siblingCount++;
        }

After Change


        int openedMacrosCount = 0;
        while (stop != null) {
            if (stop.getNodeType() == DOMUtils.COMMENT_NODE) {
                if (stop.getNodeValue().startsWith(START_MACRO_COMMENT_PREFIX)) {
                    // Nested macro. Ignore the next stop macro comment.
                    openedMacrosCount++;
                } else if (STOP_MACRO_COMMENT_VALUE.equals(stop.getNodeValue())) {